package modules

import (
	"cld-quick-cli/controllers"
	"cld-quick-cli/router/middlewares"
	"github.com/gin-gonic/gin"
)

func UserRouter(router *gin.Engine) {
	user := router.Group("/user")
	user.POST("/signup", controllers.SignUpHandler())
	user.POST("/signin", controllers.SignInHandler())
	userAuth := user.Use(middlewares.JWTAuthMiddleware())
	userAuth.GET("/profile", controllers.GetUserProfile())
}
